package ooday03;

public abstract class Animal {
    String name;
    String color;
    int age;
    Animal(String name,String color ,int age){
        this.name=name;
        this.color=color;
        this.age=age;
    }
    abstract void eat();
    void drink(){
        System.out.println("叫"+name+"的它今年"+age+"岁了"+"一身"+color+"色正在吃喝水");
    }
}
